package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.*;
import cn.com.api.service.base.*;
import cn.com.util.*;

/**
 * 
 */
@Service
public interface ApiT_shippingService extends T_shippingServiceBase {

	/**
	 * 新的订单-产生配送任务
	 * 
	 * @param dingDan
	 */
	public void produceSendTask(ApiDingDan dingDan);

	/** 获取配送员当日有效订单和订单总金额 **/
	public Map<String, Object> getShipperAccount(String user_id);

	/** 获取配送员配送服务评价 **/
	public Map<String, Object> getShipperShippingRemark(String user_id);

	/** 我的业绩汇总 */
	public void getMyAchievement(Map<String, String> params,
			Map<String, Object> map);
	
	/** 客户对配送进行评价 */
	public void evaluateShipping(Map<String, String> params,Map<String, Object> map);
	
	/** 用户每次登录，查询配送服务未评价的订单列表--货已送达未评价 */
	public void getNoEvaluateOrdersByUser(Map<String, String> params,Map<String, Object> map);
	//根据status状态查询订单
	public List<ApiT_shipping> status(int status);
	//查询配送中的订单（status=1,2,3,4,5）
	public List<ApiT_shipping> shipping_ing();
	//配送订单列表
	public List<Shipping_list> htshippingsListPage(PageInfo pageInfo);
	//待派送订单列表
	public List<Shipping_list> htshippingswaitListPage(PageInfo pageInfo);
	//多条件查询配送订单
	public List<Shipping_list> htshippingsbytermListPage(Map<String, Object> conditions,PageInfo pageInfo);
	//多条件查询待派送订单
	public List<Shipping_list> htshippingwaitbytermListPage(Map<String,Object> conditions2,PageInfo pageInfo);

	public void updateShipping(ApiT_shipping shipping,ApiDingDan dingDan);
}
